package guitest;

public class EditorWindow extends javax.swing.JFrame {
	private static final long serialVersionUID = 1L;
	private gui.EditorPane edPane = null;

	public EditorWindow(){
		super();
//		this.setSize(500, 500);
		this.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
		this.getContentPane().setLayout(new java.awt.BorderLayout());
		this.edPane = new gui.EditorPane();
		this.getContentPane().add(this.edPane, java.awt.BorderLayout.CENTER);
		javax.swing.JButton button = new javax.swing.JButton("action");
		button.addActionListener(new java.awt.event.ActionListener(){
			public void actionPerformed(java.awt.event.ActionEvent e){
				java.lang.String aux = edPane.getStringInstr();
				if(aux != null){
					System.out.println(aux);
				}else{
					System.err.println("Error");
				}
			}
		});
		this.getContentPane().add(button, java.awt.BorderLayout.SOUTH);
		this.pack();
		this.setVisible(true);
	}
	public static void main(java.lang.String[] args){
		new EditorWindow();
	}
}
